﻿using System.Globalization;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media.Animation;

namespace Xioa_UI.Convert;

public class IconRightButtonConverter : IValueConverter
{
    public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
    {
        return new CornerRadius(0, ((CornerRadius)value).TopRight, ((CornerRadius)value).BottomRight, 0);
    }

    public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
    {
        return new CornerRadius(((CornerRadius)value).TopRight);
    }
}